package com.fizzkai.p2p.bussness.domain;

import com.fizzkai.p2p.core.domain.BaseAuthDomain;

import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class BidRequestAuditHistory extends BaseAuthDomain {
    public static final int TYPE_PUBLISH = 0;   // 发标审核
    public static final int TYPE_AUDIT_1 = 1;   // 满标一审
    public static final int TYPE_AUDIT_2 = 2;   // 满标二审

    private Long bidRequestId;  // 借款 id
    private int auditType;      // 审核类型

    public String getAuditTypeDisplay(){
        switch (auditType) {
            case TYPE_PUBLISH:
                return "发标审核";
            case TYPE_AUDIT_1:
                return "满标一审";
            case TYPE_AUDIT_2:
                return "满标二审";
        }
        return "出错";
    }
}
